Skip to main content

All Questions

3votes
1answer
95views

Multi-threaded code to handle messages from a provider

Having a look at my code, is there a way to be losing elements? ...
Will's user avatar
7votes
1answer
7kviews

File downloader using Java, multithreading and HTTP Range request

I'm making a file downloader using Java. The project is on GitHub; I have included the most relevant excerpts here. I separate the file into parts and download them using HTTP Range request, with ...
Quan Tran's user avatar
12votes
2answers
10kviews

Efficiently using Apache HttpClient in multithreaded environment

I have a library which is being used by customers and they are passing DataRequest object which has userid, various ...
user1950349's user avatar
2votes
1answer
701views

File upload to web server using HttpRequestFutureTask

I am working on uploading files through Rest API. Tried my hand using single upload and works. I have modified to accommodate parallel uploads using Futures. Will there be any chance that this code ...
dmachop's user avatar
6votes
1answer
10kviews

Receiving a JSON string response from a URL

I am using RestTemplate as my HttpClient to execute a URL while the server will return a JSON string as the response. The ...
david's user avatar
  • 1,997
7votes
2answers
11kviews

Implement HTTP Server with persistent connection

I am trying to implement a HTTP Server in Java, I want the server to use a persistent connection per thread for request and response. After some research on Google, this is how my program looks like. ...
ksagar's user avatar
14votes
2answers
15kviews

HTTP server and multi-threading optimization

I wrote an HTTP server for the management of scores for users and levels. It can return the highest score per level. It has a simple login with session-key. What do you think could be improved in ...
user1883212's user avatar

close